﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HS.Log.Util
{
    public static class StackHelper
    {
        public static StackFrame ToStack(this StackFrame stack)
        {
            if (stack == null)
            {
                StackTrace st = new StackTrace(true);
                stack = st.GetFrame(2);
            }
            return stack;
        }
    }
}
